//
//  ZZDeviceGroup.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/20.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZZDeviceGroup.h"

@implementation ZZDeviceGroup

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.listDevice forKey:@"listDevice"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        
        self.listDevice = [aDecoder decodeObjectForKey:@"listDevice"];
    }
    return self;
}

- (NSMutableArray<ZZDeviceList *> *)listDevice {
    
    if (_listDevice == nil) {
        
        _listDevice = [NSMutableArray array];
    }
    return _listDevice;
}

@end
